<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>

<div id="search-body" class="block"> 
                <h4>Search</h4>
                <form name="form" id="form">
                  <ul>
                      <li class="first">
                         <select class="select" id="country_select">
							<option value="-1"> --- Please Select --- </option>
						<?php foreach($this->countrys as $c) { ?>
							<option value="<?php echo $c->id?>"><?php echo $c-> name; ?></option>          
						<?php } ?>
						</select>
                      </li>
                      <li>
                        <select class="select" id="city_select">
                        <option value="-1"> --- Please Select --- </option>                    
                    </select>
                      </li>
                      <li>
                        <select class="select" id="category_">
							<option value="-1"> --- Select Category --- </option>
							<?php foreach($this->catagorys as $c) { ?>
							<option value="<?php echo $c->id?>"><?php echo $c-> name; ?></option>          
							<?php } ?>                      
						</select>
                      </li>
                      <li>
							<input type="text" id="brand_" class="" name="brand" placeholder="Brand"/>
                      </li>
                  </ul>
                  <button type="submit" id="btnsearchshop">Find</button>
                 </form>
			</div>

<div id="category-block" class="block">
              	<h4>Category</h4>
                <div class="block-content">
                	<ul>
						<?php if($this->catagorys ==null){ ?>
						<li class="no-category">NO CATEGORY</li>
						<?php }else{ ?>
						<?php foreach($this->catagorys as $c){ ?>
						<li><a a href="index.php?option=com_retailshop&view=home&task=detailscatelog&id=<?echo $c->id;?>"><?php echo $c->name; ?></a></li>
						<?php }} ?>
                    </ul>
                </div>
             </div>
             	
            <div id="list-events" class="block">
            	<h4>List Events</h4>
                <ul class="carou">
					<?php if ($this->eventsAll == null){ ?>
					<li class="no-event">NO EVENT</li>
					<?php }else { ?>
					<?php foreach($this->eventsAll as $e){ ?>
                	<li>
						<a href="index.php?option=com_retailshop&view=myshop&task=eventdetail&idp=<?php echo $e->id; ?>&shop_id=<?php echo $e->shop_id; ?>"><p><?php echo $e->title; ?></p></a>
						<span class="from">From: </span>
						<span class="start-date"><?php echo substr($e->start_date,0,10)?></span>
						- <span class="to">To: </span>
						<span class="end-date"><?php echo substr($e->end_date,0,10); ?></span>
					</li>                    
					<?php } } ?>
                </ul>
            </div> 
             
<div id="aboutus" class="block">
              		<h4>About us</h4>
                    <div class="text">
                        <h2>Retailshop.info</h2>
                        <p>Best place to find out on going activities happening right there at local retail shop.</p>
            			<p>For Example : Despite of, a coffee shop which I can see from my office ,going to that place I will track it from my office  and will order him or grab  the coupon also.</p>
                        <a href="#">Read more</a>
                    </div>
            </div>
            
            			 